package cn.itsource.controller;

import cn.itsource.domain.User;
import cn.itsource.feign.clients.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayController {
    @Autowired
    private UserFeignClient userFeignClient;

    @RequestMapping("/getuser/{id}")
    public User getUser(@PathVariable("id") Long id){
        return userFeignClient.getuser(id);
    }
}
